const app = getApp()
Page({
	data: {
		imgUrls: [
			
		],
		indicatorDots: false,
		autoplay: false,
		interval: 5000,
		duration: 1000,
		more:{}
	},
	onLoad:function(){
		let that = this;
		app.connect('index/lunbo',[],function(options){
			that.setData({
				imgUrls:options
			});
		});
		//更多精彩
		app.connect('index/more', [], function (options) {
			that.setData({
				more: options
			});
		});
	},
	onShareAppMessage:function(){
		return {
			title: '区块截图神器',
			path: '/pages/index/index'
		}
	},
	location:function(option){
		var url = option.currentTarget.dataset.url;
		var type = option.currentTarget.dataset.type;
		var appid = option.currentTarget.dataset.appid;
		var path = option.currentTarget.dataset.path;
		//跳转到小程序内页面
		if(type == 1) {	
			wx.navigateTo({
				url: url
			})
		}
		console.log(type);	
	}
})